<script setup lang="ts">
defineProps<{
  show: boolean
  modelValue: boolean
}>()

const emit = defineEmits<{
  (e: 'update:modelValue', data: boolean): void
  (e: 'update:show', data: boolean): void
}>()
</script>

<template>
  <div class="son" v-if="show">
    <button @click="emit('update:modelValue', !modelValue)">确定</button>
    <button @click="emit('update:show', !show)">111111</button>
  </div>
</template>

<style lang="scss" scoped>
.son {
  width: 300px;
  height: 300px;
  border: 5px solid #000;
}
</style>
